<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>Edit User</title>
</head>
<body>
<h1>Edit User</h1>
<form action="update_user" method="POST">
  <input type="hidden" th:value="${user.id}" name="id">
  <label for="name">Name:</label>
  <input type="text" id="name" name="name" th:value="${user.name}" required><br><br>
  <label for="age">Age:</label>
  <input type="number" id="age" name="age" th:value="${user.age}" required><br><br>
  <label for="email">Email:</label>
  <input type="email" id="email" name="email" th:value="${user.email}" required><br><br>
  <input type="submit" value="Save Changes">
</form>
</body>
</html>